package leets.leet2358;

import java.util.Arrays;

public class Solution {
    public int maximumGroups(int[] grades) {
        int res=0;
        int num=grades.length;
        int temp=0;
        while (num>=temp){
            temp+=(res+1);
            res++;

        }
        return res;
    }
}
